use serde::{Deserialize, Serialize};
use validator::Validate;
use crate::dto::core::user_group_user::UserGroupUser;

#[derive(Serialize, Deserialize, Validate, Default, Debug, Clone, Eq, PartialEq)]
pub struct Filter {
   pub user_group_id: Option<String>,
   pub user_id: Option<String>,
}

pub type ListRequest = wanmesh_common::dto::ListRequest<Filter>;
pub type ListResponseData = wanmesh_common::dto::ListResponseData<UserGroupUser>;